//
//  RSQRCodeScanHandler.m
//  StaffTax
//
//  Created by 侯伟 on 2021/3/1.
//  Copyright © 2021 侯伟. All rights reserved.
//

#import "RSQRCodeScanHandler.h"
#import "RSTextContainerViewController.h"

@implementation RSQRCodeScanHandler

///扫码结果处理
+ (void)handleScanReslut:(NSString*)stringValue{
    
    NSData* jsonData = [stringValue dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:NULL];
}

/// 扫码登录
+ (void)loginWithKey:(NSString*)key{
    
}


/// 其他扫码结果
/// @param reslut -
+ (void)otherScanReslut:(NSString*)reslut{
    RSTextContainerViewController* controller = [RSTextContainerViewController new];
    controller.text = reslut;
    [UIViewController showViewController:controller animated:YES];
}
@end
